from rest_framework.permissions import IsAuthenticated
from rest_framework.generics import CreateAPIView
from .models import Order
from .serializers import OrderModelSerializer


class OrderAPIView(CreateAPIView):
    """订单接口"""
    serializer_class = OrderModelSerializer
    # permission_classes = IsAuthenticated
    queryset = Order.objects.filter(is_delete=False)
